org.neo4j.kernel
Class StandardExpander
java.lang.Object
org.neo4j.kernel.StandardExpander
- All Implemented Interfaces:
- Expander, RelationshipExpander
- Direct Known Subclasses:
- OrderedByTypeExpander
public abstract class StandardExpander
- extends Object
- implements Expander
DEFAULT
public static final StandardExpander DEFAULT
expand
public final org.neo4j.kernel.Expansion<Relationship> expand(Node start)
- Description copied from interface:
RelationshipExpander
- Returns relationships for a node in whatever way the implementation
likes.
- Specified by:
expand in interface RelationshipExpander
- Parameters:
start - the node to expand.
- Returns:
- the relationships to return for the
node.
toString
public final String toString()
- Overrides:
toString in class Object
add
public final StandardExpander add(RelationshipType type)
- Specified by:
add in interface Expander
add
public abstract StandardExpander add(RelationshipType type,
Direction direction)
- Specified by:
add in interface Expander
remove
public abstract StandardExpander remove(RelationshipType type)
- Specified by:
remove in interface Expander
reversed
public abstract StandardExpander reversed()
- Description copied from interface:
RelationshipExpander
- Returns a new instances with the exact same
RelationshipTypes,
but with all directions reversed (DirectionRelationshipExpander.reversed().
- Specified by:
reversed in interface Expander- Specified by:
reversed in interface RelationshipExpander
- Returns:
- a
RelationshipExpander with the same types, but with
reversed directions.
addNodeFilter
public StandardExpander addNodeFilter(Predicate<? super Node> filter)
- Specified by:
addNodeFilter in interface Expander
addRelationsipFilter
public StandardExpander addRelationsipFilter(Predicate<? super Relationship> filter)
- Specified by:
addRelationsipFilter in interface Expander
Copyright © 2010 Neo4j. All Rights Reserved.